/*
 * @Author : restyhap
 * @Date   : 2023-02-12 09:12:08
 * @LastEditors: restyhap
 * @LastEditTime: 2023-02-12 09:59:51
 */


function tagProcess(string) {
  let str = "";
  let arr = string.split("/");
  if (arr.length > 2) {
    if (string.includes("src") || string.includes("href")) {
      str = string + "  ";
    } else { 
      str = arr[0] + " />";
    }
  } else {
    str = string + "  ";
  }
  return str;
}

module.exports = {
  tagProcess,
};